package com.bjpowernode.service;

import com.bjpowernode.entity.TUser;
import com.bjpowernode.entity.TUserDO;
import com.bjpowernode.query.TUserQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 *
 */
public interface UserService extends UserDetailsService {
    PageInfo<TUser> getUserByPage(Integer current);

    boolean save(TUserQuery tUser);

    boolean removeUserById(Integer id);

    int batchDeleteUsersByIds(List<Integer> ids);

    TUser getUserById(Integer id);

    int updataUserById(TUserQuery tUserQuery);

    void updateLoginTime(Integer id);

    List<TUserDO> findAllUser();

}
